<template>
  <div class="app-container">
    <!-- 搜索工作栏 -->
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
      <el-form-item label="证券代码" prop="seccode">
        <el-input v-model="queryParams.seccode" placeholder="请输入证券代码" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="证券简称" prop="secname">
        <el-input v-model="queryParams.secname" placeholder="请输入证券简称" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="机构名称" prop="orgname">
        <el-input v-model="queryParams.orgname" placeholder="请输入机构名称" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="公告日期" prop="declaredate">
        <el-date-picker v-model="queryParams.declaredate" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
      </el-form-item>
      <el-form-item label="开始日期" prop="startdate">
        <el-date-picker v-model="queryParams.startdate" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
      </el-form-item>
      <el-form-item label="截止日期" prop="enddate">
        <el-date-picker v-model="queryParams.enddate" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
      </el-form-item>
      <el-form-item label="报告年度" prop="f001d">
        <el-input v-model="queryParams.f001d" placeholder="请输入报告年度" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="合并类型编码" prop="f002v">
        <el-input v-model="queryParams.f002v" placeholder="请输入合并类型编码" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="合并类型" prop="f003v">
        <el-input v-model="queryParams.f003v" placeholder="请输入合并类型" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="报表来源编码" prop="f004v">
        <el-input v-model="queryParams.f004v" placeholder="请输入报表来源编码" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="报表来源" prop="f005v">
        <el-input v-model="queryParams.f005v" placeholder="请输入报表来源" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="营业总收入	单位：元" prop="f035n">
        <el-input v-model="queryParams.f035n" placeholder="请输入营业总收入	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：营业收入	单位：元" prop="f006n">
        <el-input v-model="queryParams.f006n" placeholder="请输入其中：营业收入	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="利息收入-营业总收入	单位：元" prop="f033n">
        <el-input v-model="queryParams.f033n" placeholder="请输入利息收入-营业总收入	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="已赚保费	单位：元" prop="f034n">
        <el-input v-model="queryParams.f034n" placeholder="请输入已赚保费	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="手续费及佣金收入	单位：元" prop="f042n">
        <el-input v-model="queryParams.f042n" placeholder="请输入手续费及佣金收入	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="营业总成本	单位：元" prop="f036n">
        <el-input v-model="queryParams.f036n" placeholder="请输入营业总成本	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：营业成本	单位：元" prop="f007n">
        <el-input v-model="queryParams.f007n" placeholder="请输入其中：营业成本	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="利息支出	单位：元" prop="f043n">
        <el-input v-model="queryParams.f043n" placeholder="请输入利息支出	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="手续费及佣金支出	单位：元" prop="f044n">
        <el-input v-model="queryParams.f044n" placeholder="请输入手续费及佣金支出	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="退保金	单位：元" prop="f045n">
        <el-input v-model="queryParams.f045n" placeholder="请输入退保金	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="赔付支出净额	单位：元" prop="f046n">
        <el-input v-model="queryParams.f046n" placeholder="请输入赔付支出净额	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="提取保险责任准备金净额	单位：元" prop="f047n">
        <el-input v-model="queryParams.f047n" placeholder="请输入提取保险责任准备金净额	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="保单红利支出	单位：元" prop="f048n">
        <el-input v-model="queryParams.f048n" placeholder="请输入保单红利支出	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="分保费用	单位：元" prop="f049n">
        <el-input v-model="queryParams.f049n" placeholder="请输入分保费用	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="营业税金及附加	单位：元" prop="f008n">
        <el-input v-model="queryParams.f008n" placeholder="请输入营业税金及附加	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="销售费用	单位：元" prop="f009n">
        <el-input v-model="queryParams.f009n" placeholder="请输入销售费用	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="管理费用	单位：元" prop="f010n">
        <el-input v-model="queryParams.f010n" placeholder="请输入管理费用	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="勘探费用	单位：元" prop="f011n">
        <el-input v-model="queryParams.f011n" placeholder="请输入勘探费用	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="财务费用	单位：元" prop="f012n">
        <el-input v-model="queryParams.f012n" placeholder="请输入财务费用	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="研发费用" prop="f056n">
        <el-input v-model="queryParams.f056n" placeholder="请输入研发费用" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="资产减值损失-营业总成本	单位：元" prop="f013n">
        <el-input v-model="queryParams.f013n" placeholder="请输入资产减值损失-营业总成本	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="加：公允价值变动净收益	单位：元" prop="f014n">
        <el-input v-model="queryParams.f014n" placeholder="请输入加：公允价值变动净收益	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="投资收益	单位：元" prop="f015n">
        <el-input v-model="queryParams.f015n" placeholder="请输入投资收益	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：对联营企业和合营企业的投资收益	单位：元" prop="f016n">
        <el-input v-model="queryParams.f016n" placeholder="请输入其中：对联营企业和合营企业的投资收益	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="汇兑收益	单位：元" prop="f037n">
        <el-input v-model="queryParams.f037n" placeholder="请输入汇兑收益	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其它收入" prop="f051n">
        <el-input v-model="queryParams.f051n" placeholder="请输入其它收入" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="信用减值损失-营业总成本" prop="f057n">
        <el-input v-model="queryParams.f057n" placeholder="请输入信用减值损失-营业总成本" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="净敞口套期收益" prop="f058n">
        <el-input v-model="queryParams.f058n" placeholder="请输入净敞口套期收益" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="资产处置收益" prop="f059n">
        <el-input v-model="queryParams.f059n" placeholder="请输入资产处置收益" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="影响营业利润的其他科目	单位：元" prop="f017n">
        <el-input v-model="queryParams.f017n" placeholder="请输入影响营业利润的其他科目	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="营业利润	单位：元" prop="f018n">
        <el-input v-model="queryParams.f018n" placeholder="请输入营业利润	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="加：补贴收入	单位：元" prop="f019n">
        <el-input v-model="queryParams.f019n" placeholder="请输入加：补贴收入	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="营业外收入	单位：元" prop="f020n">
        <el-input v-model="queryParams.f020n" placeholder="请输入营业外收入	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：非流动资产处置利得	单位：元" prop="f050n">
        <el-input v-model="queryParams.f050n" placeholder="请输入其中：非流动资产处置利得	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="减：营业外支出	单位：元" prop="f021n">
        <el-input v-model="queryParams.f021n" placeholder="请输入减：营业外支出	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：非流动资产处置损失	单位：元" prop="f022n">
        <el-input v-model="queryParams.f022n" placeholder="请输入其中：非流动资产处置损失	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="加：影响利润总额的其他科目	单位：元" prop="f023n">
        <el-input v-model="queryParams.f023n" placeholder="请输入加：影响利润总额的其他科目	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="利润总额	单位：元" prop="f024n">
        <el-input v-model="queryParams.f024n" placeholder="请输入利润总额	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="减：所得税	单位：元" prop="f025n">
        <el-input v-model="queryParams.f025n" placeholder="请输入减：所得税	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="加：影响净利润的其他科目	单位：元" prop="f026n">
        <el-input v-model="queryParams.f026n" placeholder="请输入加：影响净利润的其他科目	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="净利润	单位：元" prop="f027n">
        <el-input v-model="queryParams.f027n" placeholder="请输入净利润	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="持续经营净利润" prop="f060n">
        <el-input v-model="queryParams.f060n" placeholder="请输入持续经营净利润" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="终止经营净利润" prop="f061n">
        <el-input v-model="queryParams.f061n" placeholder="请输入终止经营净利润" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="归属于母公司所有者的净利润	单位：元" prop="f028n">
        <el-input v-model="queryParams.f028n" placeholder="请输入归属于母公司所有者的净利润	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="少数股东损益	单位：元" prop="f029n">
        <el-input v-model="queryParams.f029n" placeholder="请输入少数股东损益	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="基本每股收益" prop="f031n">
        <el-input v-model="queryParams.f031n" placeholder="请输入基本每股收益" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="稀释每股收益" prop="f032n">
        <el-input v-model="queryParams.f032n" placeholder="请输入稀释每股收益" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其他综合收益的税后净额	单位：元" prop="f038n">
        <el-input v-model="queryParams.f038n" placeholder="请输入其他综合收益的税后净额	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="综合收益总额	单位：元" prop="f039n">
        <el-input v-model="queryParams.f039n" placeholder="请输入综合收益总额	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：归属于母公司	单位：元" prop="f040n">
        <el-input v-model="queryParams.f040n" placeholder="请输入其中：归属于母公司	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：归属于少数股东	单位：元" prop="f041n">
        <el-input v-model="queryParams.f041n" placeholder="请输入其中：归属于少数股东	单位：元" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="备注" prop="memo">
        <el-input v-model="queryParams.memo" placeholder="请输入备注" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：利息费用	2019-03-15新增" prop="f062n">
        <el-input v-model="queryParams.f062n" placeholder="请输入其中：利息费用	2019-03-15新增" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：利息收入	2019-03-15新增" prop="f063n">
        <el-input v-model="queryParams.f063n" placeholder="请输入其中：利息收入	2019-03-15新增" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="信用减值损失（2019格式）" prop="f064n">
        <el-input v-model="queryParams.f064n" placeholder="请输入信用减值损失（2019格式）" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="资产减值损失（2019格式）" prop="f065n">
        <el-input v-model="queryParams.f065n" placeholder="请输入资产减值损失（2019格式）" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：归属母公司所有者的其他综合收益的税后净额" prop="f066n">
        <el-input v-model="queryParams.f066n" placeholder="请输入其中：归属母公司所有者的其他综合收益的税后净额" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="其中：归属于少数股东的其他综合收益的税后净额" prop="f067n">
        <el-input v-model="queryParams.f067n" placeholder="请输入其中：归属于少数股东的其他综合收益的税后净额" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="以摊余成本计量的金融资产终止确认收益	2024年02新增" prop="f030n">
        <el-input v-model="queryParams.f030n" placeholder="请输入以摊余成本计量的金融资产终止确认收益	2024年02新增" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="影响营业总收入的其他科目	2024年02新增" prop="f072n">
        <el-input v-model="queryParams.f072n" placeholder="请输入影响营业总收入的其他科目	2024年02新增" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="影响营业总成本的其他科目	2024年02新增" prop="f073n">
        <el-input v-model="queryParams.f073n" placeholder="请输入影响营业总成本的其他科目	2024年02新增" clearable @keyup.enter.native="handleQuery"/>
      </el-form-item>
      <el-form-item label="创建时间" prop="createTime">
        <el-date-picker v-model="queryParams.createTime" style="width: 240px" value-format="yyyy-MM-dd HH:mm:ss" type="daterange"
                        range-separator="-" start-placeholder="开始日期" end-placeholder="结束日期" :default-time="['00:00:00', '23:59:59']" />
      </el-form-item>
      <el-form-item>
        <el-button type="primary" icon="el-icon-search" @click="handleQuery">搜索</el-button>
        <el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
      </el-form-item>
    </el-form>

    <!-- 操作工具栏 -->
    <el-row :gutter="10" class="mb8">
      <el-col :span="1.5">
        <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="openForm(undefined)"
                   v-hasPermi="['invest:lr-base:create']">新增</el-button>
      </el-col>
      <el-col :span="1.5">
        <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
                   v-hasPermi="['invest:lr-base:export']">导出</el-button>
      </el-col>
              <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
    </el-row>

            <el-table v-loading="loading" :data="list" :stripe="true" :show-overflow-tooltip="true">
            <el-table-column label="ID" align="center" prop="id" />
      <el-table-column label="证券代码" align="center" prop="seccode" />
      <el-table-column label="证券简称" align="center" prop="secname" />
      <el-table-column label="机构名称" align="center" prop="orgname" />
      <el-table-column label="公告日期" align="center" prop="declaredate" />
      <el-table-column label="开始日期" align="center" prop="startdate" />
      <el-table-column label="截止日期" align="center" prop="enddate" />
      <el-table-column label="报告年度" align="center" prop="f001d" />
      <el-table-column label="合并类型编码" align="center" prop="f002v" />
      <el-table-column label="合并类型" align="center" prop="f003v" />
      <el-table-column label="报表来源编码" align="center" prop="f004v" />
      <el-table-column label="报表来源" align="center" prop="f005v" />
      <el-table-column label="营业总收入	单位：元" align="center" prop="f035n" />
      <el-table-column label="其中：营业收入	单位：元" align="center" prop="f006n" />
      <el-table-column label="利息收入-营业总收入	单位：元" align="center" prop="f033n" />
      <el-table-column label="已赚保费	单位：元" align="center" prop="f034n" />
      <el-table-column label="手续费及佣金收入	单位：元" align="center" prop="f042n" />
      <el-table-column label="营业总成本	单位：元" align="center" prop="f036n" />
      <el-table-column label="其中：营业成本	单位：元" align="center" prop="f007n" />
      <el-table-column label="利息支出	单位：元" align="center" prop="f043n" />
      <el-table-column label="手续费及佣金支出	单位：元" align="center" prop="f044n" />
      <el-table-column label="退保金	单位：元" align="center" prop="f045n" />
      <el-table-column label="赔付支出净额	单位：元" align="center" prop="f046n" />
      <el-table-column label="提取保险责任准备金净额	单位：元" align="center" prop="f047n" />
      <el-table-column label="保单红利支出	单位：元" align="center" prop="f048n" />
      <el-table-column label="分保费用	单位：元" align="center" prop="f049n" />
      <el-table-column label="营业税金及附加	单位：元" align="center" prop="f008n" />
      <el-table-column label="销售费用	单位：元" align="center" prop="f009n" />
      <el-table-column label="管理费用	单位：元" align="center" prop="f010n" />
      <el-table-column label="勘探费用	单位：元" align="center" prop="f011n" />
      <el-table-column label="财务费用	单位：元" align="center" prop="f012n" />
      <el-table-column label="研发费用" align="center" prop="f056n" />
      <el-table-column label="资产减值损失-营业总成本	单位：元" align="center" prop="f013n" />
      <el-table-column label="加：公允价值变动净收益	单位：元" align="center" prop="f014n" />
      <el-table-column label="投资收益	单位：元" align="center" prop="f015n" />
      <el-table-column label="其中：对联营企业和合营企业的投资收益	单位：元" align="center" prop="f016n" />
      <el-table-column label="汇兑收益	单位：元" align="center" prop="f037n" />
      <el-table-column label="其它收入" align="center" prop="f051n" />
      <el-table-column label="信用减值损失-营业总成本" align="center" prop="f057n" />
      <el-table-column label="净敞口套期收益" align="center" prop="f058n" />
      <el-table-column label="资产处置收益" align="center" prop="f059n" />
      <el-table-column label="影响营业利润的其他科目	单位：元" align="center" prop="f017n" />
      <el-table-column label="营业利润	单位：元" align="center" prop="f018n" />
      <el-table-column label="加：补贴收入	单位：元" align="center" prop="f019n" />
      <el-table-column label="营业外收入	单位：元" align="center" prop="f020n" />
      <el-table-column label="其中：非流动资产处置利得	单位：元" align="center" prop="f050n" />
      <el-table-column label="减：营业外支出	单位：元" align="center" prop="f021n" />
      <el-table-column label="其中：非流动资产处置损失	单位：元" align="center" prop="f022n" />
      <el-table-column label="加：影响利润总额的其他科目	单位：元" align="center" prop="f023n" />
      <el-table-column label="利润总额	单位：元" align="center" prop="f024n" />
      <el-table-column label="减：所得税	单位：元" align="center" prop="f025n" />
      <el-table-column label="加：影响净利润的其他科目	单位：元" align="center" prop="f026n" />
      <el-table-column label="净利润	单位：元" align="center" prop="f027n" />
      <el-table-column label="持续经营净利润" align="center" prop="f060n" />
      <el-table-column label="终止经营净利润" align="center" prop="f061n" />
      <el-table-column label="归属于母公司所有者的净利润	单位：元" align="center" prop="f028n" />
      <el-table-column label="少数股东损益	单位：元" align="center" prop="f029n" />
      <el-table-column label="基本每股收益" align="center" prop="f031n" />
      <el-table-column label="稀释每股收益" align="center" prop="f032n" />
      <el-table-column label="其他综合收益的税后净额	单位：元" align="center" prop="f038n" />
      <el-table-column label="综合收益总额	单位：元" align="center" prop="f039n" />
      <el-table-column label="其中：归属于母公司	单位：元" align="center" prop="f040n" />
      <el-table-column label="其中：归属于少数股东	单位：元" align="center" prop="f041n" />
      <el-table-column label="备注" align="center" prop="memo" />
      <el-table-column label="其中：利息费用	2019-03-15新增" align="center" prop="f062n" />
      <el-table-column label="其中：利息收入	2019-03-15新增" align="center" prop="f063n" />
      <el-table-column label="信用减值损失（2019格式）" align="center" prop="f064n" />
      <el-table-column label="资产减值损失（2019格式）" align="center" prop="f065n" />
      <el-table-column label="其中：归属母公司所有者的其他综合收益的税后净额" align="center" prop="f066n" />
      <el-table-column label="其中：归属于少数股东的其他综合收益的税后净额" align="center" prop="f067n" />
      <el-table-column label="以摊余成本计量的金融资产终止确认收益	2024年02新增" align="center" prop="f030n" />
      <el-table-column label="影响营业总收入的其他科目	2024年02新增" align="center" prop="f072n" />
      <el-table-column label="影响营业总成本的其他科目	2024年02新增" align="center" prop="f073n" />
      <el-table-column label="创建时间" align="center" prop="createTime" width="180">
        <template v-slot="scope">
          <span>{{ parseTime(scope.row.createTime) }}</span>
        </template>
      </el-table-column>
      <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
        <template v-slot="scope">
          <el-button size="mini" type="text" icon="el-icon-edit" @click="openForm(scope.row.id)"
                     v-hasPermi="['invest:lr-base:update']">修改</el-button>
          <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
                     v-hasPermi="['invest:lr-base:delete']">删除</el-button>
        </template>
      </el-table-column>
    </el-table>
    <!-- 分页组件 -->
    <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize"
                @pagination="getList"/>
    <!-- 对话框(添加 / 修改) -->
    <LrBaseForm ref="formRef" @success="getList" />
    </div>
</template>

<script>
import * as LrBaseApi from '@/api/invest/lrbase';
import LrBaseForm from './LrBaseForm.vue';
export default {
  name: "LrBase",
  components: {
          LrBaseForm,
  },
  data() {
    return {
      // 遮罩层
      loading: true,
      // 导出遮罩层
      exportLoading: false,
      // 显示搜索条件
      showSearch: true,
              // 总条数
        total: 0,
      // 个股报告期利润列表
      list: [],
      // 是否展开，默认全部展开
      isExpandAll: true,
      // 重新渲染表格状态
      refreshTable: true,
      // 选中行
      currentRow: {},
      // 查询参数
      queryParams: {
                    pageNo: 1,
            pageSize: 10,
        seccode: null,
        secname: null,
        orgname: null,
        declaredate: [],
        startdate: [],
        enddate: [],
        f001d: null,
        f002v: null,
        f003v: null,
        f004v: null,
        f005v: null,
        f035n: null,
        f006n: null,
        f033n: null,
        f034n: null,
        f042n: null,
        f036n: null,
        f007n: null,
        f043n: null,
        f044n: null,
        f045n: null,
        f046n: null,
        f047n: null,
        f048n: null,
        f049n: null,
        f008n: null,
        f009n: null,
        f010n: null,
        f011n: null,
        f012n: null,
        f056n: null,
        f013n: null,
        f014n: null,
        f015n: null,
        f016n: null,
        f037n: null,
        f051n: null,
        f057n: null,
        f058n: null,
        f059n: null,
        f017n: null,
        f018n: null,
        f019n: null,
        f020n: null,
        f050n: null,
        f021n: null,
        f022n: null,
        f023n: null,
        f024n: null,
        f025n: null,
        f026n: null,
        f027n: null,
        f060n: null,
        f061n: null,
        f028n: null,
        f029n: null,
        f031n: null,
        f032n: null,
        f038n: null,
        f039n: null,
        f040n: null,
        f041n: null,
        memo: null,
        f062n: null,
        f063n: null,
        f064n: null,
        f065n: null,
        f066n: null,
        f067n: null,
        f030n: null,
        f072n: null,
        f073n: null,
        createTime: [],
      },
            };
  },
  created() {
    this.getList();
  },
  methods: {
    /** 查询列表 */
    async getList() {
      try {
      this.loading = true;
              const res = await LrBaseApi.getLrBasePage(this.queryParams);
        this.list = res.data.list;
        this.total = res.data.total;
      } finally {
        this.loading = false;
      }
    },
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNo = 1;
      this.getList();
    },
    /** 重置按钮操作 */
    resetQuery() {
      this.resetForm("queryForm");
      this.handleQuery();
    },
    /** 添加/修改操作 */
    openForm(id) {
      this.$refs["formRef"].open(id);
    },
    /** 删除按钮操作 */
    async handleDelete(row) {
      const id = row.id;
      await this.$modal.confirm('是否确认删除个股报告期利润编号为"' + id + '"的数据项?')
      try {
       await LrBaseApi.deleteLrBase(id);
       await this.getList();
       this.$modal.msgSuccess("删除成功");
      } catch {}
    },
    /** 导出按钮操作 */
    async handleExport() {
      await this.$modal.confirm('是否确认导出所有个股报告期利润数据项?');
      try {
        this.exportLoading = true;
        const res = await LrBaseApi.exportLrBaseExcel(this.queryParams);
        this.$download.excel(res, '个股报告期利润.xls');
      } catch {
      } finally {
        this.exportLoading = false;
      }
    },
              }
};
</script>